//
//  NewDiscussionWindowController.h
//  HiQ
//
//  Created by arvintan on 12-7-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "BuddyListSource.h"
#import "NewDiscussionSource.h"
#import "SwitchHeadImageWindowController.h"

@interface NewDiscussionWindowController : NSWindowController<NSTableViewDataSource,NSTableViewDelegate>
{    
    BuddyListSource *_buddyListSource;            //管理好友数据的类
    NewDiscussionSource *_selectedListSource;       //管理新建讨论组数据的类
    SwitchHeadImageWindowController *_switchHeadImageWindowController;      //头像选择窗体
}
@property BuddyListSource *_buddyListSource;
@property NewDiscussionSource *_selectedListSource;
@property NSImage *_headImage;

@property IBOutlet NSOutlineView *_outlineBuddyList;
@property IBOutlet NSTableView *_tableSelected;
@property IBOutlet NSTextFieldCell *_textselectednum;
@property IBOutlet NSTextField     *_textDiscussionName;
@property IBOutlet NSButton        *_buttonHeadImage;


-(IBAction)onSwitchHeadImage:(id)sender;
-(IBAction)onAddMember:(id)sender;
-(IBAction)onRemoveMember:(id)sender;

-(IBAction)onCreateNewDiscussion:(id)sender;
-(IBAction)onCancel :(id)sender;

@end
